package com.xxdd.kotlindemo

import android.app.Activity
import android.content.Intent
import android.content.res.AssetManager
import android.content.res.Configuration
import android.content.res.Resources
import android.util.DisplayMetrics
import androidx.activity.ComponentActivity

open class BaseActivity : ComponentActivity() {


    override fun startActivity(intent: Intent?) {
        val className = intent?.getStringExtra("className")
        intent?.setClass(this, ContainerAcitivity::class.java)
        intent?.putExtra("className", className)
        super.startActivity(intent)
    }


    override fun getResources(): Resources {

        return PluginManagerImp.getResources()
    }


    override fun getClassLoader(): ClassLoader {
        return PluginManagerImp.getDexClassLoader()
    }
}